Search the reference...
/
method
Calls filehandle.close() and returns a promise that fulfills when the filehandle is closed.
filehandle.close()